<template>
	<view>
		<view class="paymoney">
			<view :class="['payregistration',{'active':show==1}]" @click="change">挂号缴费

			</view>
			<view :class="['paydrug',{'active':show==2}]" @click="changee">药品缴费

			</view>
		</view>
		<view class="main" v-show="show==1">
			1
		</view>
		<view class="main" v-show="show==2">
			2
		</view>
		
		<button class="bottom">立即支付</button>
			
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				show: 1
			}
		},
		methods: {
			change() {
				this.show = 1
				console.log(this.show);
			},
			changee() {
				this.show = 2
				console.log(this.show);
			}
		}
	}
</script>

<style lang="scss">
	.paymoney {
		display: flex;
		justify-content: space-around;
		
	}
	.bottom{
		background-color: aqua;
		width: 100%;
		height: 50px;
		position: absolute;
		bottom: 0;
		text-align: center;
		line-height: 50px;
	}

	.active {
		color: red;
		font-size: 18px;

	}
</style>